< previous page page_29 next page >

Page 29
(table continued from previous page)
ControlPropertySetting
CommandButtonNamecmdBtn
Caption&Add
Height300
Index0
Width1200
CommandButtonNamecmdBtn
Caption&Update
Height300
Index1
Width1200
CommandButtonNamecmdBtn
Caption&Delete
Height300
Index2
Width1200
CommandButtonNamecmdBtn
CaptionE&xit
Height300
Index3
Width1200
DataControlNamedatFieldTypes
DatabaseNameFIELDTYPES.MDB
(C:\source\chap02\FIELDTYPES.MDB)
RecordSourceFieldTypes

2. Now add the code behind the command button array. Double-click the Add button (or any other button in the array) to bring up the code window. Enter the code from Listing 2.1 into the cmdBtn_Click event.
Type.gifListing 2.1. Code for the cmdBtn_Click event.
Private Sub cmdBtn_Click(Index As Integer)
    '
    ' handle button selections
continues

 
< previous page page_29 next page >

If you like this book, buy it!